from distutils.core import setup

setup(name='cmix',
      version='0.1.0',
      description='analysis scripts for D0-D0bar mixing analysis',
      author='Craig Bookwalter',
      author_email='craig.bookwalter@pnnl.gov',
      packages='cmix cmix.histdef cmix.cutdef cmix.ntdef cmix.filldef'.split(),
      scripts=['cmix_d0fit.py',
               'cmix_qfit.py',
               'cmix_fom.py',
               ],
      )

import os
import subprocess
import sys

sys.path.pop(0)

os.chdir('rows')

from cmix.ntdef import rowdefs

for k in rowdefs:
    p = subprocess.Popen("pytpp_pytrow_to_struct.py cmix {0}".format(k).split())
    p.communicate()



